[VERSN2]

// stops errors, better than checks
stop_errors true

if directory_exists absolute CARS\LPI800
do // nothing
else
create_folder absolute CARS\LPI800
end

move_file override relative absolute _MainFiles\CARS\LPI800\GEOMETRY.BIN CARS\LPI800\GEOMETRY.BIN
move_file override relative absolute _MainFiles\CARS\LPI800\TEXTURES.BIN CARS\LPI800\TEXTURES.BIN
move_file override relative absolute _MainFiles\scripts\UnlimiterData\LPI800.ini scripts\UnlimiterData\LPI800.ini

import synchronize GLOBAL\GLOBALB.LZC DBModelParts "_CarParts\DBMODELPARTS.bin"
import synchronize GLOBAL\GLOBALB.LZC Collisions "_CarParts\COLLISIONS.bin"
import synchronize GLOBAL\GLOBALB.LZC CarTypeInfos "_CarParts\CARTYPEINFOS.bin"
import synchronize GLOBAL\GLOBALB.LZC SlotOverrides "_CarParts\LPI800_PART_SPOILER.bin"

// Add required textures
if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
bind_textures synchronize Frontend\FrontB.lzc TPKBlocks DEFAULT _Textures\FrontB
else
bind_textures synchronize Frontend\FrontB.lzc TPKBlocks FRONTENDTEXTURES _Textures\FrontB
end

// Add required strings
add_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL 0xD33EC09C CARNAME_LAMBORGHINI_LPI_800 "2022 Lamborghini Countach LPI 800-4"

// Vinyls
combobox "512x Vinyl" "1024x Vinyl" "Choose Vinyl Resolution"

"512x Vinyl"
move_file override relative absolute _Vinyls\512\VINYLS.BIN CARS\LPI800\VINYLS.BIN

"1024x Vinyl"
move_file override relative absolute _Vinyls\1024\VINYLS.BIN CARS\LPI800\VINYLS.BIN

end